<?php
namespace app\system\service;
/**
 * 系统菜单接口
 */
class MenuService {
    /**
     * 获取菜单结构
     */
    public function getSystemMenu() {
        return array(
            'index' => array(
                'name' => '首页',
                'icon' => 'home',
                'order' => 0,
                'menu' => array(
                    array(
                        'name' => '首页',
                        'icon' => 'home',
                        'order' => 0,
                        'menu' => array(
                            array(
                                'name' => '系统概况',
                                'icon' => 'home',
                                'url' => url('system/Index/index'),
                                'order' => 0
                            ),
                        ),
                    ),
                ),
            ),
            'system' => array(
                'name' => '系统',
                'icon' => 'tachometer',
                'order' => 9,
                'menu' => array(
                    array(
                        'name' => '设置',
                        'icon' => 'sliders',
                        'order' => 0,
                        'menu' => array(
                            array(
                                'name' => '系统设置',
                                'icon' => 'sliders',
                                'url' => url('system/Setting/site'),
                                'order' => 0,
                            ),
                            array(
                                'name' => '缓存管理',
                                'icon' => 'upload',
                                'url' => url('system/Manage/cache'),
                                'order' => 3,
                            ),
                            array(
                                'name' => '应用管理',
                                'icon' => 'flash',
                                'url' => url('system/Functions/index'),
                                'order' => 4,
                            ),
                            array(
                                'name' => '安全记录',
                                'icon' => 'qrcode',
                                'url' => url('system/SystemLog/index'),
                                'order' => 5
                            ),
                        ),
                    ),
                    array(
                        'name' => '用户',
                        'icon' => 'user',
                        'order' => 1,
                        'menu' => array(
                            array(
                                'name' => '用户管理',
                                'icon' => 'user',
                                'url' => url('system/SystemUser/index'),
                                'order' => 7,
                            ),
                            array(
                                'name' => '角色管理',
                                'icon' => 'group',
                                'url' => url('system/SystemUserGroup/index'),
                                'order' => 8,
                            ),
                        ),
                    ),

                ),
            ),
        );
    }
}
